package com.lql.search.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hmall.common.domain.PageDTO;
import com.lql.api.dto.ItemDTO;
import com.lql.search.domain.po.Item;
import com.lql.search.domain.query.ItemPageQuery;
import com.lql.search.domain.vo.CategoryAndBrand;
import org.apache.http.HttpHost;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestHighLevelClient;

import java.io.IOException;
import java.util.Collection;
import java.util.List;

/**
 * <p>
 * 商品表 服务类
 * </p>
 *
 * @author 虎哥
 * @since 2023-05-05
 */

public interface ISearchService extends IService<Item> {


    List<ItemDTO> queryItemByIds(Collection<Long> ids);

    PageDTO<ItemDTO> searchEs(ItemPageQuery query) throws IOException;

    CategoryAndBrand filters(ItemPageQuery query) throws IOException;
}
